package com.hbnu.tangyalu.shapeabstract;

public class Circle extends Shape {
    @Override
    public void calculateArea() {
        System.out.println("子类重写父类方法");
    }

    public static void main(String[] args) {
        Circle circle=new Circle();
        circle.calculateArea();
        circle.display();
//
        Shape shape=new Circle();
        shape.calculateArea();
        shape.display();
    }
}
